import xml.etree.ElementTree as ET

def readXml():
    result_file = "E:/project/gitee/python/xml/test.xml"
    list = []
    l = {}
    for event, elem in ET.iterparse(open(result_file, encoding="UTF-8"), events=("start", "end")):
        if event == "end":
            if elem.tag == "addr1":
                l["addr1"] = elem.text
            if elem.tag == "User":
                list.append(l)
                l = {}

    print(list)

if __name__ == '__main__':
    readXml()